﻿import { Component,Input } from '@angular/core';


@Component({
    selector: 'availableMovie',
    templateUrl: './app/components/movies/availableMovie.conponent.html'
})
export class AvailableMovieComponent {
    @Input() isAvailable: boolean;
    constructor() { }

    getAvailableClass() {
        if (this.isAvailable) {
            return 'label label-success'
        } else {
            return 'label label-danger'
        }
    }
    getAvailability() {
        if (this.isAvailable) {
            return 'Available!'
        } else {
            return 'Not Available'
        }
    }
}




